package javacompiler.util;

public class Logger {
	
	private boolean log = false;

    public void log(String message) {
            if (log) {
                    System.out.println(message);
            }
    }

    public void debug(String message) {
            if (log) {
                    System.out.println(message);
            }
    }

    public void debug(String rule, String message) {
            if (log) {
                    System.out.printf("%s:%s\n", rule, message);
            }
    }
}
